@ECHO OFF
if "%CMAKE_GENERATOR%"=="" (
    ECHO ERROR:CMAKE_GENERATOR environment variable not defined. Please define the CMake generator in the CMAKE_GENERATOR environment variable.
    ECHO example :
    ECHO SET CMAKE_GENERATOR=Visual Studio 14 2015 Win64 
    EXIT /B
)
@ECHO ON

RMDIR /Q /S build
MKDIR build
PUSHD build

conan install ..
cmake .. -G "%CMAKE_GENERATOR%"
cmake --build . --config Release

bin\json_test.exe
POPD
